// DlgConfirmWork.cpp : implementation file
//

#include "stdafx.h"
#include "DlgConfirmWork.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CDlgConfirmWork dialog

CDlgConfirmWork::CDlgConfirmWork(CWnd* pParent /*=NULL*/)
	: CDialog(CDlgConfirmWork::IDD, pParent)
{
	//{{AFX_DATA_INIT(CDlgConfirmWork)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void CDlgConfirmWork::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CDlgConfirmWork)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CDlgConfirmWork, CDialog)
	//{{AFX_MSG_MAP(CDlgConfirmWork)
	//}}AFX_MSG_MAP
	ON_BN_CLICKED(IDOK, &CDlgConfirmWork::OnBnClickedOk)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDlgConfirmWork message handlers

void CDlgConfirmWork::OnCancel() 
{
	// TODO: Add extra cleanup here
	CDialog::OnCancel();
}

BOOL CDlgConfirmWork::PreTranslateMessage(MSG* pMsg) 
{
	// TODO: Add your specialized code here and/or call the base class
	if (pMsg->message == WM_KEYDOWN)
	{
		if((int)pMsg->wParam == VK_SPACE) 
		{
			EndDialog(IDCANCEL);
			return FALSE;
		}
	}
	return CDialog::PreTranslateMessage(pMsg);
}


void CDlgConfirmWork::OnBnClickedOk()
{
	// TODO: Add your control notification handler code here
	CDialog::OnOK();
}
